/*****************************************************************************
*** PIC18_lib
 *****************************************************************************/

#ifndef REG18F4550_H_INCLUDED
#define REG18F4550_H_INCLUDED

#ifndef __PCH__
 #error Solo se soporta el compilador CCS
#endif

///////////////////////////////////////////////
//                                           //
// MAPEO DE REGISTROS EN DIRECCIONES FISICAS //
//                                           //
///////////////////////////////////////////////

#byte hwTOSU		= 0x0FFF
#byte hwTOSH		= 0x0FFE
#byte hwTOSL		= 0x0FFD
#byte hwSTKPTR		= 0x0FFC
#byte hwPCLATU		= 0x0FFB
#byte hwPCLATH		= 0x0FFA
#byte hwPCL			= 0x0FF9
#byte hwTBLPTRU		= 0x0FF8
#byte hwTBLPTRH		= 0x0FF7
#byte hwTBLPTRL		= 0x0FF6
#byte hwTABLAT		= 0x0FF5
#byte hwPRODH		= 0x0FF4
#byte hwPRODL		= 0x0FF3
#byte hwINTCON		= 0x0FF2
#byte hwINTCON2		= 0x0FF1
#byte hwINTCON3		= 0x0FF0
#byte hwINDF0		= 0x0FEF
#byte hwPOSTINC0	= 0x0FEE
#byte hwPOSTDEC0	= 0x0FED
#byte hwPREINC0		= 0x0FEC
#byte hwPLUSW0		= 0x0FEB
#byte hwFSR0H		= 0x0FEA
#byte hwFSR0L		= 0x0FE9
#byte hwWREG		= 0x0FE8
#byte hwINDF1		= 0x0FE7
#byte hwPOSTINC1	= 0x0FE6
#byte hwPOSTDEC1	= 0x0FE5
#byte hwPREINC1		= 0x0FE4
#byte hwPLUSW1		= 0x0FE3
#byte hwFSR1H		= 0x0FE2
#byte hwFSR1L		= 0x0FE1
#byte hwBSR			= 0x0FE0
#byte hwINDF2		= 0x0FDF
#byte hwPOSTINC2	= 0x0FDE
#byte hwPOSTDEC2	= 0x0FDD
#byte hwPREINC2		= 0x0FDC
#byte hwPLUSW2		= 0x0FDB
#byte hwFSR2H		= 0x0FDA
#byte hwFSR2L		= 0x0FD9
#byte hwSTATUS		= 0x0FD8
#byte hwTMR0H		= 0x0FD7
#byte hwTMR0L		= 0x0FD6
#byte hwT0CON		= 0x0FD5
//					= 0x0FD4
#byte hwOSCCON		= 0x0FD3
#byte hwHLVDCON		= 0x0FD2
#byte hwWDTCON		= 0x0FD1
#byte hwRCON		= 0x0FD0
#byte hwTMR1H		= 0x0FCF
#byte hwTMR1L		= 0x0FCE
#byte hwT1CON		= 0x0FCD
#byte hwTMR2		= 0x0FCC
#byte hwPR2			= 0x0FCB
#byte hwT2CON		= 0x0FCA
#byte hwSSPBUF		= 0x0FC9
#byte hwSSPADD		= 0x0FC8
#byte hwSSPSTAT		= 0x0FC7
#byte hwSSPCON1		= 0x0FC6
#byte hwSSPCON2		= 0x0FC5
#byte hwADRESH		= 0x0FC4
#byte hwADRESL		= 0x0FC3
#byte hwADCON0		= 0x0FC2
#byte hwADCON1		= 0x0FC1
#byte hwADCON2		= 0x0FC0
#byte hwCCPR1H		= 0x0FBF
#byte hwCCPR1L		= 0x0FBE
#byte hwCP1CON		= 0x0FBD
#byte hwCCPR2H		= 0x0FBC
#byte hwCCPR2L		= 0x0FBB
#byte hwCCP2CON		= 0x0FBA
//					= 0x0FB9
#byte hwBAUDCON		= 0x0FB8
#byte hwECCP1DEL	= 0x0FB7
#byte hwECCP1AS		= 0x0FB6
#byte hwCVRCON		= 0x0FB5
#byte hwCMCON		= 0x0FB4
#byte hwTMR3H		= 0x0FB3
#byte hwTMR3L		= 0x0FB2
#byte hwT3CON		= 0x0FB1
#byte hwSPBRGH		= 0x0FB0
#byte hwSPBRG		= 0x0FAF
#byte hwRCREG		= 0x0FAE
#byte hwTXREG		= 0x0FAD
#byte hwTXSTA		= 0x0FAC
#byte hwRCSTA		= 0x0FAB
//					= 0x0FAA
#byte hwEEADR		= 0x0FA9
#byte hwEEDATA		= 0x0FA8
#byte hwEECON2		= 0x0FA7
#byte hwEECON1		= 0x0FA6
//					= 0x0FA5
//					= 0x0FA4
//					= 0x0FA3
#byte hwIPR2		= 0x0FA2
#byte hwPIR2		= 0x0FA1
#byte hwPIE2		= 0x0FA0
#byte hwIPR1		= 0x0F9F
#byte hwPIR1		= 0x0F9E
#byte hwPIE1		= 0x0F9D
//					= 0x0F9C
#byte hwOSCTUNE		= 0x0F9B
//					= 0x0F9A
//					= 0x0F99
//					= 0x0F98
//					= 0x0F97
#byte hwTRISE		= 0x0F96
#byte hwTRISD		= 0x0F95
#byte hwTRISC		= 0x0F94
#byte hwTRISB		= 0x0F93
#byte hwTRISA		= 0x0F92
//					= 0x0F91
//					= 0x0F90
//					= 0x0F8F
//					= 0x0F8E
#byte hwLATE		= 0x0F8D
#byte hwLATD		= 0x0F8C
#byte hwLATC		= 0x0F8B
#byte hwLATB		= 0x0F8A
#byte hwLATA		= 0x0F89
//					= 0x0F88
//					= 0x0F87
//					= 0x0F86
//					= 0x0F85
#byte hwPORTE		= 0x0F84
#byte hwPORTD		= 0x0F83
#byte hwPORTC		= 0x0F82
#byte hwPORTB		= 0x0F81
#byte hwPORTA		= 0x0F80
#byte hwUEP15		= 0x0F7F
#byte hwUEP14		= 0x0F7E
#byte hwUEP13		= 0x0F7D
#byte hwUEP12		= 0x0F7C
#byte hwUEP11		= 0x0F7B
#byte hwUEP10		= 0x0F7A
#byte hwUEP9		= 0x0F79
#byte hwUEP8		= 0x0F78
#byte hwUEP7		= 0x0F77
#byte hwUEP6		= 0x0F76
#byte hwUEP5		= 0x0F75
#byte hwUEP4		= 0x0F74
#byte hwUEP3		= 0x0F73
#byte hwUEP2		= 0x0F72
#byte hwUEP1		= 0x0F71
#byte hwUEP0		= 0x0F70
#byte hwUCFG		= 0x0F6F
#byte hwUADDR		= 0x0F6E
#byte hwUCON		= 0x0F6D
#byte hwUSTAT		= 0x0F6C
#byte hwUEIE		= 0x0F6B
#byte hwUEIR		= 0x0F6A
#byte hwUIE			= 0x0F69
#byte hwUIR			= 0x0F68
#byte hwUFRMH		= 0x0F67
#byte hwUFRML		= 0x0F66
#byte hwSPPCON		= 0x0F65
#byte hwSPPEPS		= 0x0F64
#byte hwSPPCFG		= 0x0F63
#byte hwSPPDATA		= 0x0F62
//					= 0x0F61
//					= 0x0F60

#endif
